package com.chenxi.controller;

import com.chenxi.client.IUserCenterClient;
import com.chenxi.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/userApi/")
public class UserController extends BaseController {
    @Autowired
    private IUserCenterClient userCenterClient;

    @RequestMapping(value = "/list")
    @ResponseBody
    public List<User> getList(){
        return userCenterClient.find();
    }
}
